from typing import Union

from fastapi import FastAPI
import uvicorn

from FastAPI.apps.user.urls import shop
from FastAPI.apps.shop.urls import user

app = FastAPI()

app.include_router(shop, prefix="/user", tags=["第一章节：商城接口", ])
app.include_router(user, prefix="/user", tags=["第二章节：用户中心接口", ])

if __name__ == '__main__':
    uvicorn.run("main:app", host="127.0.0.1", port=8080, reload=True)